import { Module } from "@nestjs/common"
import { WechatPayController } from "./wechatPay.controller"
import { WechatPayService } from "./wechatPay.service"
import { WechatPayPayment } from "./wechatPay.payment"
import { TypeOrmModule } from "@nestjs/typeorm"
import { WechatPayEntity } from "./wechatPay.entity"
// import { OrderService } from "../order/order.service"
// 调用OrderService中的创建订单方法，需要注入OrderEntity
import { OrderEntity } from "../order/order.entity"
import { AuthorizationEntity } from "../authorization/authorization.entity"

@Module({
  imports: [
    TypeOrmModule.forFeature([
      WechatPayEntity,
      OrderEntity,
      AuthorizationEntity
    ])
  ],
  controllers: [WechatPayController],
  providers: [
    WechatPayService,
    WechatPayPayment,
    // OrderService
  ]
})
export class WechatPayModule {}
